package org.dromara.system.domain.bo;

import org.dromara.system.domain.SkyBag;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 项目分包业务对象 sky_bag
 *
 * @author Lion Li
 * @date 2024-09-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SkyBag.class, reverseConvertGenerate = false)
public class SkyBagBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long id;

    /**
     * 包名
     */
    @NotBlank(message = "包名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 公司名称
     */
    @NotBlank(message = "公司名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String companiesName;

    /**
     * 公司编码
     */
    @NotBlank(message = "公司编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String companiesCode;

    /**
     * 项目ID
     */
    @NotNull(message = "项目ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long candidateId;

    private String bagName;

    private String candidateCode;

    private String uuid;
}
